﻿#ifndef SPRITEFONT_H
#define SPRITEFONT_H
#include "SpritePerDefine.h"
#include "SpriteD3D.h"
#include "SpriteD3D10.h"
namespace Sprite
{
	class SpriteFont
	{
	public:
		SpriteFont();
		int draw(std::wstring tex);
		virtual ~SpriteFont(void);
	protected:
		///DX10的字体描述
		D3DX10_FONT_DESC m_fontDesc;
		///字体
		ID3DX10Font* m_Font;
		///文字位置
		RECT m_rect;
		///内容
		std::wstring m_strContext;
		///格式
		UINT	m_nFormat;
		///字体颜色
		SpriteColor m_Color;
		///D3D的指针对象
		const SpriteD3D* m_pCD3d;
	};
}
#endif
